import request from '../../utils/request';

// 会员账户交易明细相关 API

// 获取会员交易明细列表
export const getMemberTransactionList = (memberId: string) => {
    return request({
        url: `/member/api/transaction-detail/list/${memberId}`,
        method: 'get'
    });
};

// 分页查询会员交易明细
export const getTransactionDetailPage = (data: any) => {
    return request({
        url: '/member/api/transaction-detail/page',
        method: 'post',
        data
    });
};

// 统计会员能量值变动
export const getMemberEnergyStatistics = (memberId: string) => {
    return request({
        url: `/member/api/transaction-detail/statistics/${memberId}`,
        method: 'get'
    });
};

// 根据任务ID查询交易明细
export const getTransactionDetailByTaskId = (taskId: string) => {
    return request({
        url: `/member/api/transaction-detail/task/${taskId}`,
        method: 'get'
    });
};
